import request from '@/utils/request';

// 查询收货地址
export const getRecAddr = (data) => {
  return request({
    url: '/console/system/getRecAddr',
    method: 'POST',
    data,
  })
}
// 添加/修改收货地址
export const saveRecAddr = (data) => {
  return request({
    url: '/console/system/saveRecAddr',
    method: 'POST',
    data,
  })
}
// 查询售后原因
export const getReturnReason = (data) => {
  return request({
    url: '/console/system/getReturnReason',
    method: 'POST',
    data,
  })
}
// 添加/修改售后原因
export const saveReturnReason = (data) => {
  return request({
    url: '/console/system/saveReturnReason',
    method: 'POST',
    data,
  })
}
// 删除售后原因
export const delReturnReason = (data) => {
  return request({
    url: '/console/system/delReturnReason',
    method: 'POST',
    data,
  })
}
// 查询问题配置
export const getProblem = (data) => {
  return request({
    url: '/console/system/getProblem',
    method: 'POST',
    data,
  })
}
// 添加/修改问题配置
export const saveProblem = (data) => {
  return request({
    url: '/console/system/saveProblem',
    method: 'POST',
    data,
  })
}
// 删除问题
export const delProblem = (data) => {
  return request({
    url: '/console/system/delProblem',
    method: 'POST',
    data,
  })
}
// 获取配置比例设置
export const getIntegral = (data) => {
  return request({
    url: '/console/system/getIntegral',
    method: 'POST',
    data,
  })
}
// 系统配置比例设置
export const saveIntegral = (data) => {
  return request({
    url: '/console/system/saveIntegral',
    method: 'POST',
    data,
  })
}